You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TRngStream Class > TRngStream Methods > TRngStream.RandomRayleigh Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TRngStream.RandomRayleigh Method

Generates an array of samples distributed by Rayleigh distribution.

Syntax
C#
Visual Basic
public void RandomRayleigh([In] TMtxVec Dst, [In] double a, [In] double beta);

Returns random numbers distributed according to the Rayleigh probability density function (PDF) similar to as defined here Probabilities.RayleighPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array which can be accessed via Dst.Values property. The Rayleigh distribution is a special case of the Weibull distribution where the alfa parameter is equal to 2. The probability density function is defined as: 

 

2*(x-a) sqr(x-a) f(x) = -------- exp( ------------ ) , x >= a sqr(b) sqr(beta) f(x) = 0, x < a
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!